package com.zyf.system.controller.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 张云帆
 * 2025/3/26 15:08
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class DepartmentUpdateDto {
    @NotNull(message = "部门id不能为空")
    @ApiModelProperty(value = "部门id", required = true)
    private Integer id;

    @NotEmpty(message = "部门名称不能为空")
    @ApiModelProperty(value = "部门名称", required = true)
    private String name;

    @ApiModelProperty(value = "部门描述")
    private String description;

    @ApiModelProperty(value = "上级部门id")
    @NotNull(message = "上级部门id不能为空")
    private Integer parentId;
}
